package com.chance.cc.crawler.prod.command.trigger.domain.news.zhx;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.scripts.zhx.ZHXCrawlerScript;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.news.zhx.ZHXCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-11 17:54:34
 * @email okprog@sina.com
 */
public class ZHXCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {
        publishScheduleTriggerInfo();
    }

    public static void publishScheduleTriggerInfo(){
        CrawlerJob crawlerJob = ZHXCrawlerScheduleJob.crawlerJob();
        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                ZHXCrawlerScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Cron,
                "0 0 3 * * ?",
                "中国保险咨询，每天3点采集一次");
    }

}
